<!--
- Author:  LiShibin.
- Date:    2017/10/16 0016.
- File:    feedback.
-->
<template>
  <div>
    <div class="FormFilling hidden">
      <ul>
        <li class="mb20 " style="height: 6rem">
          <div class="rightcon w548">
            <textarea class="inp" type="text" placeholder="输入反馈内容..." v-model="content" style="line-height: 30px; font-size: 14px;height: 6rem"></textarea>
          </div>
        </li>
      </ul>
    </div>
    <div class="pl20 pr20 mt20">
      <button type="button" class="but_1 wauto" @click="addFeedback">提交</button>
    </div>
    <back-nav></back-nav>
  </div>
</template>

<script>
  export default{
    data() {
      return {
        content: ''
      }
    },
    components: {},
    methods: {
      addFeedback() {
        if (this.content.trim() == '') {
          this.$toast('请填写反馈内容')
        }
        this.$request.addFeedback(this.content).then(data => {
          this.$toast('反馈成功')
          this.$router.go(-1)
        })
      }
    }
  }
</script>

<style>

</style>